package com.laowang.project.system.service.impl;

import java.util.List;
                                        import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhLookMapper;
import com.laowang.project.system.domain.MyCyhLook;
import com.laowang.project.system.service.MyCyhLookService;

/**
 * 商家浏览Service业务层处理
 *
 * @author laowang
 * @date 2023-05-30
 */
@Service
public class MyCyhLookServiceImpl implements MyCyhLookService {
    @Autowired
    private MyCyhLookMapper myCyhLookMapper;

    /**
     * 查询商家浏览
     *
     * @param id 商家浏览ID
     * @return 商家浏览
     */
    @Override
    public MyCyhLook selectMyCyhLookById(Integer id) {
        return myCyhLookMapper.selectMyCyhLookById(id);
    }

    /**
     * 查询商家浏览列表
     *
     * @param myCyhLook 商家浏览
     * @return 商家浏览
     */
    @Override
    public List<MyCyhLook> selectMyCyhLookList(MyCyhLook myCyhLook) {
        return myCyhLookMapper.selectMyCyhLookList(myCyhLook);
    }

    /**
     * 新增商家浏览
     *
     * @param myCyhLook 商家浏览
     * @return 结果
     */
    @Override
    public int insertMyCyhLook(MyCyhLook myCyhLook) {
                                                                            return myCyhLookMapper.insertMyCyhLook(myCyhLook);
    }

    /**
     * 修改商家浏览
     *
     * @param myCyhLook 商家浏览
     * @return 结果
     */
    @Override
    public int updateMyCyhLook(MyCyhLook myCyhLook) {
                                                                            return myCyhLookMapper.updateMyCyhLook(myCyhLook);
    }

    /**
     * 批量删除商家浏览
     *
     * @param ids 需要删除的商家浏览ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhLookByIds(Integer[] ids) {
        return myCyhLookMapper.deleteMyCyhLookByIds(ids);
    }

    /**
     * 删除商家浏览信息
     *
     * @param id 商家浏览ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhLookById(Integer id) {
        return myCyhLookMapper.deleteMyCyhLookById(id);
    }
}
